<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.net.URLDecoder" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="${path}/plugins/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${path}/css/client/login.css" type="text/css">


    <title>登录</title>
</head>

<body>
<%@ include file="../common/nav.jsp"%>
    <div class="passport-pageMainCnt"
        style="background-color: #94c0f2;background-image:url('${path}/imgs/login-page-bg.jpg');">
        <div class="w clearFix pr">
            <div class="login-page-title">
                <h1>技能时间共享平台</h1>
                <h2>自由工作&nbsp;&nbsp;合规用人&nbsp;&nbsp;互联网众包一站式解决方案</h2>
            </div>
            <div class="fr  loginBlock base-mr10 xs-Element">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <span class="wel">欢迎登录</span><a href="registerView" class="go-register">没有账号,立即注册</a>
                    </div>
                </div>
                <div class="clearFix loginBlock-hd" id="loginBlockHd">
                    <div class="fl login-page-a login-page-black" id="zhlogin" onclick="change(1)">
                        账号密码登录
                    </div>
                    <div class="fl login-page-a" id="dxlogin" onclick="change(2)">
                        短信动态登录
                    </div>

                </div>
                <form class="layui-form" id="loginForm" action="${path}/client/login" method="post">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <div class="ipt">
                                <i class="layui-icon layui-icon-username"></i>
                                <input type="text" id="loginPhone" name="username" lay-verify="required|phone" placeholder="请输入手机号"
                                    onfocus="this.placeholder=''" autocomplete="off" onblur="checkLoginName()"
                                    class="layui-input">
                            </div>
                            <span class="error-tip" id="error-tip"></span>
                        </div>
                    </div>
                    <div class="layui-form-item" id="mima">
                        <div class="layui-inline">
                            <div class="ipt">
                                <i class="layui-icon layui-icon-password"></i>
                                <input type="password" id="loginPassword" name="password" lay-verify="pass" placeholder="请输入您的密码"
                                    onfocus="this.placeholder=''" onblur="checkLoginPwd()"
                                    autocomplete="off" class="layui-input">
                            </div>
                            <span class="error-tip" id="error-tip1">${loginErrorMsg}</span>
                        </div>
                    </div>


                    <div class="layui-form-item" id="dxma" style="display: none;">
                        <div class="layui-inline">
                            <div class="ipt d-code">
                                <i class="layui-icon layui-icon-password"></i>
                                <input type="password" id="loginVerificationCode" name="verificationCode" lay-verify="pass" placeholder="请输入动态码"
                                    onfocus="this.placeholder=''" onblur="this.placeholder='请输入动态码'" autocomplete="off"
                                    class="layui-input">
                            </div>
                            <button type="button" id="sendButton" class="layui-btn get-code" onclick="getLoginVerificationCode()">获取动态码</button>
                            <span class="error-tip"id="error-tip3">${codeError1}</span>
                        </div>
                        
                    </div>
                    <div class="layui-form-item rem-for" pane="">
                        <input type="checkbox" id="remember" name="flag" lay-skin="primary" title="记住账号" checked="">
                        <span class="forget-pwd"><a href="">忘记密码?</a></span>
                    </div>
                    <div class="layui-form-item">
                        <button type="submit" id="loginButton" class="layui-btn login-btn" lay-submit="" lay-filter="demo1" onclick="checkLoginButton()">立即登录</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <%@ include file="../common/footer.jsp"%>

    <script src="${path}/js/client/login.js"></script>
    <script src="${path}/plugins/layui/layui.all.js"></script>
    <script src="${path}/plugins/jquery/jquery.min.js"></script>


</body>

</html>